import request from '@/utils/request'
// 合作方列表
export function partnerList(data) {
  return request({
    url: '/admin/partner/index',
    method: 'post',
    data: data
  })
}

// 合作方保存
export function partnerSave(data) {
  return request({
    url: '/admin/partner/save',
    method: 'post',
    data: data
  })
}

// 合作方登录
export function getTokenById(data) {
  return request({
    url: '/admin/partner/getTokenById',
    method: 'post',
    data: data
  })
}

// 获取分销方秘钥
export function getDistSecret(data) {
  return request({
    url: '/admin/partner/getDistSecret',
    method: 'post',
    data: data
  })
}
// 获取分销方秘钥
export function getAuthAuth(data) {
  return request({
    url: '/admin/partner/authList',
    method: 'post',
    data: data
  })
}
// 分销方启用禁用开关
export function distributorStatus(data) {
  return request({
    url: '/admin/partner/distributorStatus',
    method: 'post',
    data: data
  })
}
